package com.example.seckill.mq;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SeckillMessage implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @JsonProperty("userId")
    private Long userId;
    
    @JsonProperty("goodsId")
    private Long goodsId;
}